package g34930.td6Bis.Sources;

import java.util.Scanner ; 

public class SuiteD { 
    public static void main ( String[] args ) { 
	Scanner clavier = new Scanner ( System.in ) ;  


	int nb, i, N;

	nb = 1 ;
	N = clavier.nextInt();

	for ( i =1 ; i <= N ; i ++) {


	    System.out.println(nb);

	    if ( i%20 >= 1 && i%20 <= 9 ) {

		nb = nb + 1;
		//System.out.println(" i : " + i);

	    }
	    else {

		if ( i%10 == 0 ) {


		    nb = nb + 10;
		    //System.out.println(" i : " + i);

		}
		else {
		    if ( i%20 >= 11 && i%20 <= 19) {

			nb = nb - 1;
			//System.out.println(" i : " + i);
		    }
		}


	    }


	}




    }



}
